package com.students.service;

import com.students.pojo.Localstorage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author caohanqing
 * @since 2022-07-10
 */
public interface ILocalstorageService extends IService<Localstorage> {

    /**
     * 创建图片-文件夹
     * @param file
     * @return
     */
    String ImgFound(MultipartFile file) throws IOException;

    /**
     * 创建文件-文件夹
     * @param file
     * @return
     */
    String TxtFound(MultipartFile file) throws IOException;

    /**
     * 日期文件夹
     * @param file
     * @return
     */
    String DateFound(MultipartFile file) throws IOException;

    /**
     * 根据用户id和上级目录分段查询文件列表
     * @return
     * @param superiorId
     */
    List<Localstorage> getFindAllID(int superiorId);
}
